package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Category;
import com.itheima.pojo.Result;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface CategoryService extends IService<Category> {


    Result page(Integer page, Integer pageSize);


    Result add(HttpServletRequest request, @RequestBody Category category);

    Result delect(String id);


    Result put(Category category);

    Result list(Integer type);


    Result lists();
}
